package com.jizhi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗兆良
 * @since 2020-11-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Application对象", description="")
public class Application implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请单序号")
    @TableId(value = "aid", type = IdType.ID_WORKER)
    private Long aid;

    @ApiModelProperty(value = "住院科室")
    private String administrative;

    @ApiModelProperty(value = "住院时间")
    private Date adate;

    @ApiModelProperty(value = "病房类行")
    private String roomtype;

    @ApiModelProperty(value = "申请时间")
    private String sdate;

    @ApiModelProperty(value = "医生姓名")
    private String dname;

    @ApiModelProperty(value = "住院病因")
    private String acause;

    @ApiModelProperty(value = "病人id")
    private Long bid;

    @ApiModelProperty(value = "插入时间")
    @TableField(fill = FieldFill.INSERT)//插入时操作
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
